package inventory.entity.po;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiParam;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.Date;

/**
 * @author sxt
 * @create 2019-12-08 15:57
 */
@Getter
@Setter
@ToString
@ApiModel(value = "销库请求相关信息")
public class SaleRequestPo {

    @ApiModelProperty(hidden = true)
    @TableId(value = "sale_id", type = IdType.UUID)
    private String saleId;
    @ApiModelProperty(value = "用户id")
    private String userId;
    @ApiModelProperty(value = "类型id（typicalId）")
    private String typicalId;
    @ApiModelProperty(value = "物料id（物料出库才填写,由于物料是根据id销库而其他两种是根据串号销库）")
    private String stuff_id;
    @ApiModelProperty(value = "对应仓库id")
    private String repositoryId;
    @ApiModelProperty(value = "如果是物料，填写这个参数，表示物料使用量")
    private Long num;
    @ApiModelProperty(value = "如果是终端和设备，填写这个参数，代表串号")
    private String serialNum;
    @ApiModelProperty(value = "请求处理状态,发送请求不用传，默认0：未处理，1：已处理",hidden = true)
    private Integer status = 0;
    @ApiParam(value = "接收此申请的上级id")
    private String roleId;
    @ApiParam(value = "销库时间")
    private Date requestTime;

    @ApiParam(value = "类别名")
    private String categoryName;
    @ApiParam(value = "类别描述")
    private String categoryContext;
    @ApiParam(value = "类别id")
    private String categoryId;
    @ApiParam(value = "类型名")
    private String typicalName;
    @ApiParam(value = "品牌")
    private String brand;
    @ApiParam(value = "型号")
    private String typicalModel;
    @ApiParam(value = "单位")
    private String unit;
    @ApiParam(value = "管理员id")
    private String managerId;

    @ApiParam(value = "销库种类")
    private Integer saleType;



}
